//
//  UserDataManager.h
//  OrangeNote
//
//  Created by 刘崇龙 on 16/1/21.
//  Copyright © 2016年 崇龙. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class UserModel;

typedef void(^SuccessBlock)();
typedef void(^FailedBlock)(NSString *);

typedef void(^UpdateUI)();
typedef void(^SendData)(id);

@interface UserDataManager : NSObject

// 用户注册
- (void)userRigstWithUserModel:(UserModel *)userModel;
@property (nonatomic, copy) SuccessBlock registSuccessBlock;
@property (nonatomic, copy) FailedBlock registFailedBlock;

// 用户登陆
- (void)userLoginWithUsername:(NSString *)username andPassword:(NSString *)password;
@property (nonatomic, copy) SuccessBlock loginSuccessBlock;
@property (nonatomic, copy) FailedBlock loginFailedBlock;

// 修改用户头像
- (void)userUpdateUserImage:(UIImage *)image;
@property (nonatomic, copy) UpdateUI updateUserTVC;


- (void)selectUserImageWithUsername:(NSString *)username;
@property (nonatomic, copy) SendData sendImage;


@end 
